home *** CD-ROM | disk | FTP | other *** search
/ Games of Daze / Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso / djgpp / diffs / texinfo-.1 / info / filesys.c < prev    next >
Encoding:
C/C++ Source or Header  |  1994-08-05  |  1.7 KB  |  65 lines

  1. *** orig/texinfo-.1/info/filesys.c    Sun Aug 29 18:40:54 1993
  2. --- src/texinfo-.1/info/filesys.c    Sun Aug 29 21:04:00 1993
  3. ***************
  4. *** 273,279 ****
  5.     if ((i >= strlen (string)) || !string)
  6.       return ((char *) NULL);
  7.   
  8. !   while (string[i] && string[i] != ':')
  9.       i++;
  10.     if (i == start)
  11.       {
  12. --- 273,279 ----
  13.     if ((i >= strlen (string)) || !string)
  14.       return ((char *) NULL);
  15.   
  16. !   while (string[i] && string[i] != PATH_SEPARATOR_CHAR)
  17.       i++;
  18.     if (i == start)
  19.       {
  20. ***************
  21. *** 382,395 ****
  22.       strcpy (infopath, path);
  23.     else if (where == INFOPATH_APPEND)
  24.       {
  25. !       strcat (infopath, ":");
  26.         strcat (infopath, path);
  27.       }
  28.     else if (where == INFOPATH_PREPEND)
  29.       {
  30.         char *temp = savestring (infopath);
  31.         strcpy (infopath, path);
  32. !       strcat (infopath, ":");
  33.         strcat (infopath, temp);
  34.         free (temp);
  35.       }
  36. --- 382,395 ----
  37.       strcpy (infopath, path);
  38.     else if (where == INFOPATH_APPEND)
  39.       {
  40. !       strcat (infopath, PATH_SEPARATOR_STR);
  41.         strcat (infopath, path);
  42.       }
  43.     else if (where == INFOPATH_PREPEND)
  44.       {
  45.         char *temp = savestring (infopath);
  46.         strcpy (infopath, path);
  47. !       strcat (infopath, PATH_SEPARATOR_STR);
  48.         strcat (infopath, temp);
  49.         free (temp);
  50.       }
  51. ***************
  52. *** 425,431 ****
  53. --- 425,435 ----
  54.         int descriptor;
  55.         char *contents;
  56.   
  57. + #if defined (__MSDOS__)
  58. +       descriptor = open (pathname, O_RDONLY | O_BINARY, 0666);
  59. + #else /* __MSDOS__ */
  60.         descriptor = open (pathname, O_RDONLY, 0666);
  61. + #endif /* __MSDOS__ */
  62.   
  63.         /* If the file couldn't be opened, give up. */
  64.         if (descriptor < 0)
  65.